package com.shop.cloud.ueditor.config;

import javax.servlet.http.HttpServletRequest;

public class LocalizedMessages {

	public static String getInvalidFileTypeSpecified(HttpServletRequest request) {
		return "您上传的文件类型不合法";
	}

	public static String getFileUploadWriteError(HttpServletRequest request) {
		return "上传失败，请重试！";
	}
	
	public static String getInvalidResouceTypeSpecified(HttpServletRequest request) {
		return "错误的资源类型"; //$NON-NLS-1$
	}

	public static String getInvalidFileSuffixSpecified(HttpServletRequest request) {
		return "错误的文件格式！"; //$NON-NLS-1$
	}
	
	public static String getInvalidFileToLargeSpecified(HttpServletRequest request, String filename, Integer max) {
		return String.format("您上传的文件{0},大于单文件大小限制{1}KB", filename, max);
	}

	public static String getInvalidUploadDailyLimitSpecified(HttpServletRequest request, String lavesize) {
		return  String.format("超过每日上传限制，今日还可以上传{0}KB", lavesize);
	}

	public static String getInvalidUploadMultipartSpecified(HttpServletRequest request) {
		return "截图失败！";
	}

	public static String getInvalidUploadInputStreamSpecified(HttpServletRequest request) {
		return "未发现输入流！";
	}

	public static String getRemoteImageSuccessSpecified(HttpServletRequest request) {
		return "远程图片抓取成功！";
	}

}
